package com.ruoyi.project.Inspectionfee.service.Impl;


import com.ruoyi.project.Inspectionfee.damin.Inspectionfee;
import com.ruoyi.project.Inspectionfee.mapper.InspectionfeeMapper;
import com.ruoyi.project.Inspectionfee.service.InspectionfeeSerivce;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class InspectionfeeSerivceImpl implements InspectionfeeSerivce {
    /**
     * 依赖导入
     */
    @Autowired
    private InspectionfeeMapper inspectionfeeMapper;

    /**
     * 页面数据显示
     * @param inspectionfee
     * @return
     */
    @Override
    public List<Inspectionfee> selectInspectionfeelist(Inspectionfee inspectionfee) {
        return inspectionfeeMapper.selectInspectionfeelist(inspectionfee);
    }

    /**
     * 会先查询
     * @param inspectionfeeId
     * @return
     */
    @Override
    public Inspectionfee selectInspectionfeeById(Long inspectionfeeId) {
        return inspectionfeeMapper.selectInspectionfeeById(inspectionfeeId);
    }

    /**
     * 数据修改
     * @param inspectionfee
     * @return
     */
    @Override
    public int updateInspectionfee(Inspectionfee inspectionfee) {
        return inspectionfeeMapper.updateInspectionfee(inspectionfee);
    }

    /**
     * 指定删除
     * @param inspectionfeeId
     * @return
     */
    @Override
    public int deleteInspectionfeeById(Long inspectionfeeId) {
        return inspectionfeeMapper.deleteInspectionfeeById(inspectionfeeId);
    }

    /**
     * 批量删除
     * @param inspectionfeeIds 需要删除的数据ID
     * @return
     */
    @Override
    public int deleteInspectionfeeByIds(Long[] inspectionfeeIds) {
        return inspectionfeeMapper.deleteInspectionfeeByIds(inspectionfeeIds);
    }

    /**
     * 添加
     * @param inspectionfee
     * @return
     */
    @Override
    public int insertInspectionfee(Inspectionfee inspectionfee) {
        return inspectionfeeMapper.insertInspectionfee(inspectionfee);
    }
}
